package xlj.lib.android.base.utils;

import android.util.Log;

import xlj.lib.android.base.BuildConfig;

public class SystemLogger implements IXLogger {
    private String tag;

    public SystemLogger(String tag) {
        this.tag = tag;
    }

    @Override
    public void logI(String message) {
        if (BuildConfig.DEBUG) {
            Log.i(tag, message);
        }
    }

    @Override
    public void logW(String message) {
        if (BuildConfig.DEBUG) {
            Log.w(tag, message);
        }
    }

    @Override
    public void logE(String message) {
        if (BuildConfig.DEBUG) {
            Log.e(tag, message);
        }
    }
}
